package data.join.com.application;

/**
 * Created by Administrator on 2017/4/11.
 */

public class EventMessage {
    public int  what;
    public String msg;
    public Object obj;

    public final static int NEW_MQTT_COMMAND = 1001;
    public final static int DEVICES_REGISTER_SUCCESS = 1002;
    public final static int NEW_FILE_CREATE = 1003;
    public final static int MQTT_SUB_SUCCESS = 1004;

    public final static int MEDIA_FILE_ADD = 3001;
    public final static int MEDIA_FILE_REMOVE = 3002;
    public final static int MEDIA_FILE_LOCK = 3003;

    public EventMessage(){}

    public EventMessage(int w, String m, Object o){
        what = w;
        msg = m;
        obj = o;
    }
    public EventMessage(int w){
        what = w;
    }

}
